package com.bw;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.amqp.rabbit.core.RabbitTemplate;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@SpringBootTest(classes=rabbitApplication.class)
public class shengcanzhe {
    @Autowired
    private RabbitTemplate rabbitTemplate;
    @Test
    public void sexMag(){
        rabbitTemplate.convertAndSend("itcase","这届模式车市");
    }

}
